package models

import (
	"time"
)

type WXChannel struct {
	Id       int       `orm:"column(id);PK" json:"id"`
	Name     string    `orm:"column(name)" json:"name"`
	Qrcode   string    `orm:"column(qrcode)" json:"qrcode"`
	SceneKey string    `orm:"column(scene_key)" json:"scene_key"`
	Ct       time.Time `orm:"column(ct)" json:"ct"`
	SubNum   int       `orm:"column(subnum) "json:"subsnum"`
}

type WXEvent struct {
	Id       int       `orm:"column(id);PK" json:"id"`
	ToUser   string    `orm:"column(to_user_name)" json:"to_user_name"`
	FromUser string    `orm:"column(from_user_name)" json:"from_user_name"`
	Event    string    `orm:"column(event)" json:"event"`
	EventKey string    `orm:"column(event_key)" json:"event_key"`
	Ct       time.Time `orm:"column(ct)" json:"ct"`
}
